home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 8
/
The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO
/
wildcat
/
l32b5.zip
/
UPGRADE.WCX
(
.txt
)
< prev
Wrap
Wildcat! WCX
|
1996-04-03
|
2KB
|
173 lines
'! Decompiled with wccNosy version 4.20f (freeware)
'! Input File: in.wcx 2020 bytes 11/15/122 01:49:30am
'! Code Segment Size :1268 bytes
'! Data Segment Size :4934 bytes
'! String Segment Size:752 bytes
'! Compiled with WCC version 4.10
Type Type30
s0 As String*70
t29_70 As Type29
Filler70(1 To 2) As Byte
s72 As String*30
End Type
Type Type29
End Type
Type Type28
s0 As String*70
t29_70 As Type29
End Type
Type Type27
s0 As String*70
s70 As String*8
w78 As Word
w80 As Word
s82 As String*1
s83 As String*1
s84 As String*1
s85 As String*1
s86 As String*1
l87 As Long
d91 As Date
s93 As String*1
s94 As String*1
End Type
Type Type26
s0 As String*70
s70 As String*8
i78 As Integer
i80 As Integer
s82 As String*1
s83 As String*1
s84 As String*1
s85 As String*1
End Type
Dim t26_4463 As Type26
Dim t27_4556 As Type27
Dim t28_4746 As Type28
Dim t30_4818 As Type30
Dim i4920 As Integer
Dim s4922 As String
Dim s4926 As String
Dim l4930 As Long
Dim s65532_ As String
Cls
If Not Exists("listserv.cfg") Then
Print
Print "@0C@Unable to locate @0F@LISTSERV.CFG"
Print
WaitEnter
End
End If
76 Open "listserv.cfg" For Input As 1
Input #1, s4926
Input #1, s4926
Close 1
Cls
Print
Print " @0D@- @0B@Listserv Upgrade Utility @0D@-"
Print
Print " @09@[@0F@A@09@] @0E@- @0A@Upgrade from v2.6x to v2.9x"
Print " @09@[@0F@B@09@] @0E@- @0A@Upgrade from v2.7x to v2.9x"
Print " @09@[@0F@Q@09@] @0E@- @0A@Quit"
Print
Print " @0B@Choice@07@: ";
Do
169 s4922 = UCase(InKey(1213417543))
Loop Until s4922 = "A" Or s4922 = "B" Or s4922 = "Q"
s65532_ = s4922
If s65532_ = "A" Then
GoTo 319
Else
264 If s65532_ = "B" Then
GoTo 835
Else
293 If s65532_ = "Q" Then
Print
End
GoTo 319
End If
End If
End If
319 Print
Print "@0A@This will upgrade your Listserv v2.6x data files to v2.8x"
Print "@0A@Make sure you back up your data files first!"
Print
Print "@0B@Are you ready to proceed? "; DefColor;
If Not InputYesNo("", -1) Then
End
End If
375 If Exists(s4926 + "listserv.da2") Then
Kill s4926 + "listserv.da2"
End If
409 Open s4926 + "listserv.dat" For Random As 1 Len = 93 '! This value should probably be replaced with a "SizeOf" expression
Open s4926 + "listserv.da2" For Random As 2 Len = 95 '! This value should probably be replaced with a "SizeOf" expression
i4920 = 1
Do
468 Get 1, i4920, t26_4463 '! 93 bytes
If t26_4463.s0 <> "<BLANK>" Then
Print "@0A@Upgrading @0F@"; t26_4463.s0
UpdateScreen
t27_4556.s0 = t26_4463.s0
t27_4556.s70 = t26_4463.s70
t27_4556.w78 = t26_4463.i78
t27_4556.w80 = t26_4463.i80
t27_4556.s82 = t26_4463.s82
t27_4556.s83 = t26_4463.s83
t27_4556.s84 = t26_4463.s84
t27_4556.s85 = t26_4463.s85
t27_4556.s86 = "Y"
t27_4556.l87 = 0
CurrentDate t27_4556.d91
t27_4556.s93 = "Y"
t27_4556.s94 = "L"
Put 2, LOF(2) + 1, t27_4556 '! 95 bytes
End If
754 Inc i4920
Loop Until i4920 > LOF(1)
Reset
Kill s4926 + "listserv.dat"
CopyFile(s4926 + "listserv.da2", s4926 + "listserv.dat")
Kill s4926 + "listserv.da2"
835 Cls
Reset
Print
Open s4926 + "listserv.dat" For Random As 1 Len = 95 '! This value should probably be replaced with a "SizeOf" expression
i4920 = 1
Do
876 Get 1, i4920, t27_4556 '! 95 bytes
If t27_4556.s0 <> "<BLANK>" Then
Print "@0B@Upgrading subscriber file @0F@"; t27_4556.s70; "@0B@..."
UpdateScreen
l4930 = 1
Open s4926 + t27_4556.s70 + ".DAT" For Random As 2 Len = 72 '! This value should probably be replaced with a "SizeOf" expression
Open s4926 + t27_4556.s70 + ".DA2" For Random As 3 Len = 102 '! This value should probably be replaced with a "SizeOf" expression
Do
1024 Get 2, l4930, t28_4746 '! 72 bytes
t30_4818.s0 = t28_4746.s0
t30_4818.t29_70 = t28_4746.t29_70 '! 2 bytes
t30_4818.s72 = ""
Put 3, l4930, t30_4818 '! 102 bytes
Inc l4930
Loop Until l4930 > LOF(2)
Close 2
Close 3
CopyFile(s4926 + t27_4556.s70 + ".DA2", s4926 + t27_4556.s70 + ".DAT")
Kill s4926 + t27_4556.s70 + ".DA2"
End If
1208 Inc i4920
Loop Until i4920 > LOF(1)
Reset
Print
Print "@0E@Upgrade completed! @0B@Run Listutil and check your data."
Print
WaitEnter
End